package com.szeldon.declatest.exec.result;

import com.szeldon.declatest.declaration.scenario.parts.ErrorPartDeclaration;

/**
 * Result for scenario's execution that ends with "Error" part.
 * 
 * @author szeldon
 * 
 */
public class ErrorScenarioExecutionResult extends ScenarioExecutionResult {
    
    private ErrorPartDeclaration errorPart;

    /**
     * 
     * @param errorPart
     */
    public ErrorScenarioExecutionResult(ErrorPartDeclaration errorPart) {
        this.errorPart = errorPart;
    }

    public ErrorPartDeclaration getErrorPart() {
        return errorPart;
    }
}
